package com.tongna.crawler;

import edu.uci.ics.crawler4j.crawler.CrawlController;

public class MyWebCrawlerFactory implements CrawlController.WebCrawlerFactory<MyCrawler> {

    private String url;

    public MyWebCrawlerFactory(String url) {
        this.url = url;
    }

    @Override
    public MyCrawler newInstance() throws Exception {
        MyCrawler crawler=new MyCrawler(url);
        return crawler;
    }
}
